import allure
from appium.webdriver.common.appiumby import AppiumBy

from base.xueqiu_app import XueQiu


class SetPage(XueQiu):
    _set = AppiumBy.XPATH, "//*[@text='股票指标']"
    _set_page = (AppiumBy.XPATH, "//*[@text='股票指标设置']")

    # 股票指标设置
    @allure.step('股票指标设置')
    def stock_indicator_setting(self):
        self.find_swipe("股票指标", '0.9', '0.2').click()
        res = self.find_ele(self._set_page)
        self.screen()
        return res

